#!/bin/bash
if [ -f "$1" ]; then
    file=$(basename "$1")
    filename=${file%.*}
    gcc -std=c99 $1 $2 $3 $4 $5 $6 $7 $8 $9 -o $filename && ./$filename
else
    echo 'file not exists...'
fi
